package com.pzh.logistics.mbg.mapper;

import com.pzh.logistics.mbg.model.TransitOrder;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

public interface TransitOrderMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(TransitOrder record);

    int insertSelective(TransitOrder record);

    TransitOrder selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(TransitOrder record);

    int updateByPrimaryKey(TransitOrder record);

    int pay(@Param("orderId") Integer orderId, @Param("ispay") String ispay);

    int updateStateByOrderId(@Param("orderId") Integer orderId,@Param("state") String state);

    List<TransitOrder> findByUserId(Integer userId);

    Integer distributeCourierCollect(Integer shipperId, Integer isCollection);

    List<TransitOrder> selectByPrimaryKeyList(List<Integer> idList);
}